#include "../app/app_message.h"
#include "../thirdparty/log.h"
#include "../app/app_common.h"
int main(int argc, char const *argv[])
{
    char bytes_data[9] = {1, 2, 4, 'X', 'X', 'a', 'b', 'c', 'd'};
    char *json = app_message_bytes2json(bytes_data, 9);
    log_info("json: %s", json);

    char new_bytes[100];
    int data_len = app_message_json2bytes(json, new_bytes, 100);
    app_common_print_hex(new_bytes, data_len);

    return 0;
}